package editors.objectedit;
import game.Game;
import graphics.main.MainRenderer;
import graphics.main.Window;
import main.Config;
public class ObjectEditor {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Config.load("config/editorconfig");
		Window win = new Window();
		win.setMaxfps(Config.MAXFPS);
		// Set the window title so we can see whether this one is a server or a
		// client.
		win.setTitle("Rohxel - ObjectEditor");
		// creates a renderer which must be attached to a window
		ObjEditRenderer r = new ObjEditRenderer();
		// attach renderer to window
		VoidNetHandler vh = new VoidNetHandler();
		Game g = new Game(vh, "level0");
		g.setServer(true);
		r.setGame(g);
		win.setRenderer(r);
		win.startMainloop();
		win.cleanUp();
	}
}
